(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/h-toast/index" ], {
    "02bb": function(t, n, e) {
        var o = e("4ea4").default;
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var i = o(e("ded3")), a = {
            title: "",
            name: "",
            duration: 3e3,
            position: "center",
            nowrap: !1
        }, s = {
            components: {},
            props: {},
            data: function() {
                return {
                    visible: !1,
                    isShow: !1,
                    toastConfig: (0, i.default)({}, a)
                };
            },
            computed: {
                iconName: function() {
                    return {
                        success: "toast-success",
                        fail: "toast-fail",
                        error: "toast-fail",
                        warning: "toast-fail"
                    }[this.toastConfig.name] || this.toastConfig.name;
                },
                isImage: function() {
                    var t, n;
                    return (null === (t = this.toastConfig) || void 0 === t || null === (n = t.name) || void 0 === n ? void 0 : n.indexOf("/")) >= 0 || !1;
                }
            },
            methods: {
                open: function() {
                    var t = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                    return this.toastConfig = (0, i.default)((0, i.default)({}, a), n), this.toastConfig.title ? (this.visible = !0, 
                    this.$nextTick(function() {
                        t.isShow = !0, clearTimeout(t.timeId), t.timeId = setTimeout(function() {
                            t.hide();
                        }, t.toastConfig.duration);
                    }), new Promise(function(n) {
                        t.callResolve = n;
                    })) : Promise.resolve();
                },
                hide: function() {
                    var t = this;
                    clearTimeout(this.timeId), this.isShow = !1, setTimeout(function() {
                        t.visible = !1, t.callResolve && t.callResolve(), t.$emit("hide");
                    }, 300);
                },
                success: function(t) {
                    var n = "string" == typeof t ? {
                        title: t
                    } : t;
                    return this.open((0, i.default)((0, i.default)({}, n), {}, {
                        name: "success"
                    }));
                },
                error: function(t) {
                    var n = "string" == typeof t ? {
                        title: t
                    } : t;
                    return this.open((0, i.default)((0, i.default)({}, n), {}, {
                        name: "error"
                    }));
                },
                warn: function(t) {
                    var n = "string" == typeof t ? {
                        title: t
                    } : t;
                    return this.open((0, i.default)((0, i.default)({}, n), {}, {
                        name: "warning"
                    }));
                }
            }
        };
        n.default = s;
    },
    "1876d": function(t, n, e) {
        e.r(n);
        var o = e("02bb"), i = e.n(o);
        for (var a in o) [ "default" ].indexOf(a) < 0 && function(t) {
            e.d(n, t, function() {
                return o[t];
            });
        }(a);
        n.default = i.a;
    },
    4349: function(t, n, e) {
        e.r(n);
        var o = e("b7f4"), i = e("1876d");
        for (var a in i) [ "default" ].indexOf(a) < 0 && function(t) {
            e.d(n, t, function() {
                return i[t];
            });
        }(a);
        e("ff8b");
        var s = e("f0c5"), r = Object(s.a)(i.default, o.b, o.c, !1, null, "64d7f5da", null, !1, o.a, void 0);
        n.default = r.exports;
    },
    "87c2": function(t, n, e) {},
    b7f4: function(t, n, e) {
        e.d(n, "b", function() {
            return o;
        }), e.d(n, "c", function() {
            return i;
        }), e.d(n, "a", function() {});
        var o = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    ff8b: function(t, n, e) {
        var o = e("87c2");
        e.n(o).a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/h-toast/index-create-component", {
    "components/h-toast/index-create-component": function(t, n, e) {
        e("543d").createComponent(e("4349"));
    }
}, [ [ "components/h-toast/index-create-component" ] ] ]);